import React from "react";
import { useNewEvents } from "@/api/events";
import { NewEventsTable } from "@/feature/NewEventsTable/NewEventsTable";

const NewEvents = () => {
  const [rawData, isLoading] = useNewEvents();

  return (
    <div className="page-wrapper">
      <NewEventsTable data={rawData} isLoading={isLoading} />
    </div>
  );
};

export default NewEvents;
